<?php

class Util
{
    const PAGE_SIZE = 10;

    public static function getStatusString($status)
    {
        $result = "";
        
        switch ($status) {
            case BSMBooking::STATUS_BOOKED:
                $result = Yii::t('site', 'Booked');
                break;
            case BSMBooking::STATUS_PAYING:
                $result = Yii::t('site', 'Paying');
                break;
            case BSMBooking::STATUS_SAVED:
                $result = Yii::t('site', 'Saved');
                break;
            case BSMBooking::STATUS_CANCEL:
                $result = Yii::t('site', 'Cancel');
                break;

            default:
                break;
        }
        
        return $result;
    }
}

